Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved fqtk demux --help output readability #45

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

TimD1
Copy link

@TimD1 TimD1 commented Jul 16, 2024

I looked into parsing MarkDown in Rust for terminal output, and the two options that might make sense are pulldown-cmark-mdcat and termimad.

However, since the help text is in a documentation string (currently parsed and added to --help by clap), I decided not to add a dependency and move things around. It looks like it may be a while before clap adds MarkDown support (clap-rs/clap#2389), but a simple single-line workaround fixes the newline issue around Markdown lists and code, which IMO was the main readability issue.

 - added clap directive to print doc string verbatim
 - annotated code as bash to prevent `cargo doc` expecting rust code
@nh13 nh13 requested a review from tfenne July 17, 2024 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fqtk demux's usage is full of MarkDown that comes out verbatim on the console
1 participant